/**
 * 用户
 */
export interface User {
  id: number;
  email: string;
  password: string;
  avatar: string;
  nickname: string;
  active: boolean;
  superuser: boolean;
  createdAt: string;
  updatedAt: string;
}

/**
 * @interface 简历
 *
 * @property {number} id - 简历 ID
 * @property {string} name - 姓名
 *
 */
export interface Resume {
  id: number;
  name: string;
  job: string;
  photo: string;
  basic: string;
  contact: string;
  education: string;
  skills: string;
  workExperience: string;
  createdAt: string;
  updatedAt: string;
  authorId: number;
}

/**
 * 博客文章
 */
export interface Post {
  id: number;
  title: string;
  cover: string;
  digest: string;
  content: string;
  published: boolean;
  hits: number;
  createdAt: string;
  updatedAt: string;
  authorId: number;
}

/**
 * 评论
 */
export interface Comment {
  id: number;
  description: string;
  createdAt: string;
  authorId: number;
  postId: number;
}

/**
 * 标签
 */
export interface Tag {
  id: number;
  name: string;
  createdAt: string;
  ownerId: number;
}
